package com.s64.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;


@TableName("book")
public class Book implements Serializable {

    private static final long serialVersionUID = -5095285519170350640L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private BigDecimal price;
    private Integer amount;
    private Integer secondsKill;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getSecondsKill() {
        return secondsKill;
    }

    public void setSecondsKill(Integer secondsKill) {
        this.secondsKill = secondsKill;
    }
}
